﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlyingHat.Common.Global
{
    /// <summary>
    /// 全局常数
    /// </summary>
    public static class GlobalConst
    {
        public const string LoginPath = "/Login/Index";
        public const string LogoutPath = "/Login/Logout";
        public const string AccessDeniedPath = "/Error/Forbid";
        public const string CaptchaSessionName = "CaptchaSession";
        public const string ImageExtension = ".gif|.jpg|.jpeg|.png";
        public const string PDFExtension = ".pdf";
        /// <summary>
        /// 500M
        /// </summary>
        public const long MaxLimit_500M = 524288000;
        public const int MaxLimit_1M = 1048576;
        public const int MaxLimit_5M = 5242880;
        public const int MaxLimit_40M = 41943040;
        public static class Claims
        {
            /// <summary>
            /// 用户Id
            /// </summary>
            public const string UserId = "id";
        }
        //**************Content-type

        public const string Xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
        //**************Content-type

        //***************RedisKey
        public static class RedisKey
        {
            /// <summary>
            /// 分类树
            /// </summary>
            public const string ClassificationTree = "ClassificationTree";
        }
        //***************RedisKey
    }
}
